//
//  CaseCollectionViewCell1.m
//  LiangYa_BObject
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "CaseCollectionViewCell1.h"

@implementation CaseCollectionViewCell1

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
//        self.mylabel = [[UILabel alloc] init];
//        [self.contentView addSubview:self.mylabel];
        
        
        
        self.myimageview = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myimageview];
        self.myimageview.backgroundColor = [UIColor yellowColor];
        
        self.mylabel1 = [[UILabel alloc] init];
        [self.myimageview addSubview:self.mylabel1];
        self.mylabel1.textColor = [UIColor whiteColor];
        self.mylabel1.font = [UIFont systemFontOfSize:13];
        self.mylabel1.backgroundColor = [UIColor colorWithRed:16/255.0 green:16/255.0 blue:16/255.0 alpha:0.6];

        
        
    }
    return self;
    
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes

{
    
     self.backgroundColor = [UIColor clearColor];
    self.myimageview.frame = self.contentView.bounds;
    self.mylabel1.frame = CGRectMake(0, cellHeight-20, cellWidth, 20);
}


@end
